import request from '/@/utils/request';

export const getOrders = (query:any)=>{
    return request({
        url:'/firm/?page='+query.pagenum+'&limit='+query.pagesize+"&searchText="+query.query,
        method:"get"
    })
}

export const addOrder = (query:any)=>{
    return request({
        url:'/firm/',
        method:'post',
        data: query
    })
}

export const upOrder = (query:any)=>{
    return request({
        url:'/firm/',
        method:'put',
        data: query
    })
}

export const delOrder = (query:any)=>{
    return request({
        url:'/firm/',
        method:'delete',
        data:query
    })
}